<div class="row buttons">
    {if $model->isNewRecord}
        {assign var="text" value="Добавить"}
    {else}
        {assign var="text" value="Сохранить"}
    {/if}
    {array assign="htmlOptions" class="popup-button submit"}
    {chtmlLink text="<span>"|cat:$text|cat:"</span>" url="#" htmlOptions=$htmlOptions}
</div>
